archive: Unconditionally honor PAX size (#441)
authorAlex Crichton <alex@alexcrichton.com>
Thu, 19 Mar 2026 21:56:51 +0000 (16:56 -0500)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 24 Jul 2026 16:02:33 +0000 (18:02 +0200)
commit2870fbdebed12edaa88e9f80c3a62c95708c60e5
tree71078a415dca753842226828d72f1238d96ba3ca
parent93dbfc6db3625807d0b3e7b2af3e6729be8bedc6
archive: Unconditionally honor PAX size (#441)

This synchronizes our behavior with most other tar parsers
(including astral-tokio-tar and Go archive/tar) ensuring
that we don't parse things differently.

The problem with parsing size in particular differently is
it's easy to craft a tar archive that appears completely differently
between two parsers. This is the case with e.g. crates.io where
astral-tokio-tar is used for validation server side, but cargo uses
the `tar` crate to upload.

With this, the two projects agree.

Signed-off-by: Colin Walters <walters@verbum.org>
Co-authored-by: Colin Walters <walters@verbum.org>
FG: drop test-related changes, adapt version
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
Fixes: CVE-2026-33055
Gbp-Pq: Topic vendor
Gbp-Pq: Name tar-CVE-2026-33055.patch
vendor/tar-0.4.43/src/archive.rs